
import store from '@/store'
/**
 * tab权限校验
 * @param {Array} value 校验值
 * @returns {Boolean}
 */

export function hasTabPermission(value) {
  const roles = store.getters && store.getters.menusArr
  return roles.some(role => role.menuId === value)
}

